package com.tao.switchdemo3;

import java.util.Scanner;

public class SwitchDemo1 {
    public static void main(String[] args) {
        int grade;
        Scanner input = new Scanner(System.in);
        grade = input.nextInt();
        if (grade <  0 || grade > 100){
            System.err.println("输入数据有误");
            return;
        }
        switch (grade / 10) {

            case 10:
            case 9:
                System.out.println("优秀");
                break;
            case 8:
            case 7:
                System.out.println("良好");
                break;
            case 6:
                System.out.println("及格");
            default:
                System.err.println("不及格");
        }
    }
}
